package com.mj.mes.system.SysUser;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/3/16.
 */
@Transactional
public interface SysUserDao extends JpaRepository<SysUser,Long>,JpaSpecificationExecutor<SysUser>{
//    @Query("select u from SysUser u where u.userName=:name")
//    SysUser findBySysUserName(@Param("name") String name);
    SysUser findByUserName(String name);
}
